<div class="container w-xxl w-auto-xs" data-ng-init="app.settings.container = false;">
    <a href class="navbar-brand block m-t">{{app.name}}</a>

    <div class="m-b-lg">
        <div class="wrapper text-center">
            <strong>欢迎注册</strong>
        </div>
        <form name="registerForm" class="form-validation" novalidate>
            <div class="text-danger wrapper text-center" ng-show="authError">
                {{authError}}
            </div>

            <div class="list-group list-group-sm">
                <div class="list-group-item">
                    <input placeholder="请输入用户名" class="form-control no-border" data-ng-model="user.name" required />
                </div>
                <div class="list-group-item">
                    <input type="password" placeholder="请输入密码" class="form-control no-border" data-ng-model="user.email" required />
                </div>
                <div class="list-group-item">
                    <input type="password" placeholder="请输入确认密码" class="form-control no-border" data-ng-model="user.password" required />
                </div>
            </div>

            <div class="checkbox m-b-md m-t-none">
                <label class="i-checks">
                    <input type="checkbox" data-ng-model="agree" required><i></i> 我同意 <a href="" class="text-info-lter">《用户服务协议》</a>
                </label>
            </div>

            <button type="submit" class="btn btn-lg btn-primary btn-block" data-ng-click="signup()" data-ng-disabled='registerForm.$invalid'>注册</button>

            <div class="line line-dashed"></div>

            <p class="text-center"><small>已经有一个帐户吗?</small></p>

            <a data-ui-sref="access.login" class="btn btn-lg btn-default btn-block">登录</a>
        </form>
    </div>
    <div class="text-center" data-ng-include="'views/layout/footer.html'"></div>
</div>

